home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 21 / AACD 21.iso / AACD / Utilities / Ghostscript / src / gdevpsu.h < prev    next >
Encoding:
C/C++ Source or Header  |  2001-01-01  |  2.6 KB  |  75 lines

  1. /* Copyright (C) 2000 Aladdin Enterprises.  All rights reserved.
  2.   
  3.   This file is part of AFPL Ghostscript.
  4.   
  5.   AFPL Ghostscript is distributed with NO WARRANTY OF ANY KIND.  No author or
  6.   distributor accepts any responsibility for the consequences of using it, or
  7.   for whether it serves any particular purpose or works at all, unless he or
  8.   she says so in writing.  Refer to the Aladdin Free Public License (the
  9.   "License") for full details.
  10.   
  11.   Every copy of AFPL Ghostscript must include a copy of the License, normally
  12.   in a plain ASCII text file named PUBLIC.  The License grants you the right
  13.   to copy, modify and redistribute AFPL Ghostscript, but only under certain
  14.   conditions described in the License.  Among other things, the License
  15.   requires that the copyright notice and this notice be preserved on all
  16.   copies.
  17. */
  18.  
  19. /*$Id: gdevpsu.h,v 1.2 2000/09/19 19:00:22 lpd Exp $ */
  20. /* Interface to PostScript-writing utilities */
  21.  
  22. #ifndef gdevpsu_INCLUDED
  23. #  define gdevpsu_INCLUDED
  24.  
  25. /* Define parameters and state for PostScript-writing drivers. */
  26. typedef struct gx_device_pswrite_common_s {
  27.     float LanguageLevel;
  28.     bool ProduceEPS;
  29.     int ProcSet_version;
  30.     long bbox_position;        /* set when writing file header */
  31. } gx_device_pswrite_common_t;
  32. #define PSWRITE_COMMON_PROCSET_VERSION 1000 /* for definitions in gdevpsu.c */
  33. #define PSWRITE_COMMON_VALUES(ll, eps, psv)\
  34.   {ll, eps, PSWRITE_COMMON_PROCSET_VERSION + (psv)}
  35.  
  36. /* ---------------- Low level ---------------- */
  37.  
  38. /* Write a 0-terminated array of strings as lines. */
  39. void psw_print_lines(P2(FILE *f, const char *const lines[]));
  40.  
  41. /* ---------------- File level ---------------- */
  42.  
  43. /*
  44.  * Write the file header, up through the BeginProlog.  This must write to a
  45.  * file, not a stream, because it may be called during finalization.
  46.  */
  47. void psw_begin_file_header(P5(FILE *f, const gx_device *dev,
  48.                   const gs_rect *pbbox,
  49.                   gx_device_pswrite_common_t *pdpc, bool ascii));
  50.  
  51. /* End the file header.*/
  52. void psw_end_file_header(P1(FILE *f));
  53.  
  54. /* End the file. */
  55. void psw_end_file(P4(FILE *f, const gx_device *dev,
  56.              const gx_device_pswrite_common_t *pdpc,
  57.              const gs_rect *pbbox));
  58.  
  59. /* ---------------- Page level ---------------- */
  60.  
  61. /*
  62.  * Write the page header.
  63.  */
  64. void psw_write_page_header(P4(stream *s, const gx_device *dev,
  65.                   const gx_device_pswrite_common_t *pdpc,
  66.                   bool do_scale));
  67. /*
  68.  * Write the page trailer.  We do this directly to the file, rather than to
  69.  * the stream, because we may have to do it during finalization.
  70.  */
  71. void psw_write_page_trailer(P3(FILE *f, int num_copies, int flush));
  72.  
  73. #endif /* gdevpsu_INCLUDED */
  74.  
  75.